var addSelector = function (data) {
    var options = '';
    for (var index in data) {
        options += '<option value="' + index + '">' + data[index] + '</option>'
    }
    return '<option>请选择</option>' + options;
}
var getUsers = function (area_id, role_id) {
    $.post('/api/users/by/roles', {
        role_id:role_id,
        area_id:area_id,
    }, function (data) {
        $("#pid"+role_id).html(addSelector(data));
    });
}